﻿<UserControl x:Class="Moonwish.Silverlight.OsAvatar.InternalApp.Explorer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Controls="clr-namespace:Moonwish.Silverlight.OsAvatar.Controls" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <ResourceDictionary Source="../Cores/BaseStyle.xaml" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="#Fa3E9CD0" >
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Border x:Name="brdTaskBarOuter" BorderBrush="#FFB3D7EC"  BorderThickness="0, 1, 0 ,0" >
            <Border x:Name="brdTaskBarInner" Background="#FF90C5E3" BorderBrush="#FFB3D7EC" BorderThickness="0, 0, 0 ,1" >
                <Grid>
                    <Rectangle x:Name="rectTaskBar" RadiusY="0" RadiusX="0" Visibility="Visible" />
                    <StackPanel Orientation="Horizontal">
                        <Button x:Name="btnBack" Style="{StaticResource RoundButton}" Height="22" Width="22" Margin="5, 0, 0, 0" Click="btnBack_Click" IsEnabled="false">
                            <Path Stroke="White" StrokeThickness="4" StrokeEndLineCap="Round" StrokeStartLineCap="Triangle">
                                <Path.Data>
                                    <GeometryGroup>
                                        <!--<RectangleGeometry Rect="10,7 9,3 9,7"></RectangleGeometry>-->
                                        <LineGeometry StartPoint="2,5" EndPoint="6,1" />
                                        <LineGeometry StartPoint="1,5" EndPoint="11,5" />
                                        <LineGeometry StartPoint="2,5" EndPoint="6,9" />
                                    </GeometryGroup>
                                </Path.Data>
                            </Path>
                        </Button>
                        <Button x:Name="btnForward" Style="{StaticResource RoundButton}" Height="25" Width="25" Margin="3, 0, 0, 0" Click="btnForward_Click" IsEnabled="false">
                            <Path Stroke="White" StrokeThickness="4" StrokeEndLineCap="Triangle" StrokeStartLineCap="Round" UseLayoutRounding="False">
                                <Path.Data>
                                    <GeometryGroup>
                                        <LineGeometry StartPoint="6,1" EndPoint="10,5" />
                                        <LineGeometry StartPoint="1,5" EndPoint="11,5" />
                                        <LineGeometry StartPoint="6,9" EndPoint="10,5" />
                                    </GeometryGroup>
                                </Path.Data>
                            </Path>
                        </Button>
                    </StackPanel>
                </Grid>
            </Border>
        </Border>
        <ListBox x:Name="ListboxExplorer" Grid.Row="1" SelectionChanged="ListboxExplorer_SelectionChanged" Style="{StaticResource WrapListBox}" Background="Transparent" Margin="10" Grid.ColumnSpan="3">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <!--Click="btnDesktop_Click"-->
                    <Controls:DblButton x:Name="btnDesktop" DoubleClick="BtnDesktopDoubleClick" Template="{StaticResource ButtonTransparentTemplate}" HorizontalAlignment="Left" Margin="3">
                        <StackPanel>
                            <Image x:Name="Icon" Source="{Binding Icon32, Mode=TwoWay}" Width="40" Height="40" HorizontalAlignment="Center"/>
                            <TextBlock FontSize="12" Foreground="White" Text="{Binding Name, Mode=TwoWay}" HorizontalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" Width="70"/>
                        </StackPanel>
                    </Controls:DblButton>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
